package homeJava2;

import java.util.Scanner;

public class J04_CalcurateFee {

	public static void main(String[] args) {

		Scanner sc = null;
		int km;
		int won = 0;
		
		sc = new Scanner(System.in);
		System.out.print("거리를 입력하세요(km) : ");
		km = sc.nextInt();
		
		
		if (km < 50) System.out.println(won = 10000);
		if (km >= 50 && km < 100) System.out.println(won = 18000);
		if (km >= 100 && km < 300) System.out.println(won = 55000);
		if (km > 300) System.out.println(won = 75000);
		
		System.out.println("배송료는 " + won + "원 입니다.");
	}

}
